import { BaseEntity } from '@cool-midway/core';
import { Column, Entity } from 'typeorm';

/**
 * 物品
 */
@Entity('user_items')
export class UserItemsEntity extends BaseEntity {

  @Column({ comment: '背包编号', nullable: true })
  backpack: string;

  @Column({ comment: '用户id', nullable: true })
  uid: number;

  @Column({ comment: '物品id', nullable: true })
  gid: number;

  @Column({ comment: '物品数量', nullable: true })
  num: number;
}
